<table cellpadding="2">
	<tr>
		<th>id</th>
		<th>Имя</th>
		<th>Email</th>
		<th>Права</th>
	</tr>
	<? foreach ($users as $user):?>
	<tr>
		<td><?=$user->id?></td>
		<td>
			<? if ($this->user->data->pAdmin || ($user->id == $this->user->id) || (!$user->pAdmin)):?>
				<a href="/admin/users/edit/<?=$user->id?>"><?=$user->pName?></a>
			<? else:
				echo $user->pName;
			endif; ?>
		</td>
		<td><?=$user->pEmail?></td>
		<td><?=(($user->pAdmin)?'Админ':(($user->pModer)?'Модератор':'---'))?></td>
	</tr>
	<? endforeach;?>
</table>

<?=$pagination?>